package com.afkx.oop.demo8;

/**
 * @ClassName 防盗门
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/4 13:46
 * @Version 1.0
 */
public class SecurityDoor extends Door implements Bell{
    public SecurityDoor(String name) {
        super(name);
    }

    public void open() {
        System.out.println("防盗门打开");
    }

    public void close() {
        System.out.println("防盗门关闭");
    }

    public void ring() {
        System.out.println("防盗门铃响");
    }
}
